package com.feihong.activity.mapper;


import com.feihong.activity.entity.SensorDTO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface PushCityMapper {


    void addPushTask( String taskName, String url);

    Integer getMaxTaskId();

    void addAuthentication(Integer newTaskId, String authUrl);


    void addAuthUserName(String loginName, Integer newTaskId);

    void addAuthPassword(String password, Integer newTaskId);

    void addAuthPlatformId(String platformId, Integer newTaskId);

    void addRequestHeader(Integer newTaskId);

    void addFieldReplace(List<SensorDTO> list);

    void addPushRange(Integer newTaskId, String areaDataCode);

    void deletePushTask(Integer taskId);

    void deletePushTaskAuth(Integer taskId);

    void deletePushTaskAuthField(Integer taskId);

    void deletePushTaskHeaderField(Integer taskId);

    void deletePushRangeField(Integer taskId);

    void deletePushRange(Integer taskId);

    void addPushProductKeyRel(Integer taskId, Map<String, String> map);

    void addPushRangeFieldRel(Integer taskId, Map<String, String> map);

    Integer selectSensorCountByAreaDataCode(String areaDataCode);

    void addAll(Integer newTaskId);

    List<Integer> selectAreaDataCodesCountByArea();


}
